package xin.homeant.upms.rpc.model;

import java.io.Serializable;

import org.junit.Ignore;

/**
 * Created by homeant on 2017/4/3.
 */
public class AppUser implements Serializable{
	
	private static final long serialVersionUID = -7304898408326228244L;

	private String username;

    private String password;

    private String salt;

    private boolean locked;

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getSalt() {
        return salt;
    }

    public void setSalt(String salt) {
        this.salt = salt;
    }
    
	public String getCredentialsSalt() {
		return username + salt;
	}

    public boolean isLocked() {
        return locked;
    }

    public void setLocked(boolean locked) {
        this.locked = locked;
    }

    @Override
    public String toString() {
        return "AppUser{" +
                "username='" + username + '\'' +
                ", password='" + password + '\'' +
                ", salt='" + salt + '\'' +
                ", locked=" + locked +
                '}';
    }
}
